package com.ktjy.ch15.service;

import com.ktjy.ch15.entity.Flower;
import com.ktjy.ch15.utils.Page;
import org.apache.ibatis.annotations.Param;

public interface FlowerService {

    public Page<Flower> findPage(Flower flower, Integer pageNo, Integer pageSize);

    public boolean save(Flower flower);

    public Flower findById(Integer flowerId);

    public boolean update(Flower flower);

    public boolean delete(Integer flowerId);

    public Flower findByFlowerName(@Param("flowerName") String flowerName);
}
